package cn.pconline.autoclub.entity;

import java.util.Date;

import org.gelivable.dao.Column;
import org.gelivable.dao.Entity;
import org.gelivable.dao.Id;
import org.gelivable.dao.Label;

@Entity(tableName = "ac_user_subject",split = "Mod:userId:10")
@Label("用户话题表")
public class UserSubject {

	@Id
    @Label("用户id")
    @Column(name = "user_id")
	private long userId;
	
	@Id
    @Label("主题id")
    @Column(name = "subject_id")
	private long subjectId;
	
	@Id
    @Label("动态id")
    @Column(name = "dyna_info_id")
	private long dynaInfoId;
	
	@Label("创建时间")
    @Column(name = "create_at")
	private Date createAt;
	
	@Label("是否为置顶")
    @Column(name = "is_top")
	private int isTop;
	
	
	/**话题状态：正常   value ：1**/
	public static final int STATUS_NORMAL = Subject.STATUS_NORMAL;
	/**话题状态：删除   value ：-1**/
	public static final int STATUS_DELETE = Subject.STATUS_DELETE;
	@Label("话题状态")
    @Column(name = "status")
	private int status;

	public long getUserId() {
    	return userId;
    }

	public void setUserId( long userId ) {
    	this.userId = userId;
    }

	public long getSubjectId() {
    	return subjectId;
    }

	public void setSubjectId( long subjectId ) {
    	this.subjectId = subjectId;
    }

	public long getDynaInfoId() {
    	return dynaInfoId;
    }

	public void setDynaInfoId( long dynaInfoId ) {
    	this.dynaInfoId = dynaInfoId;
    }

	public Date getCreateAt() {
    	return createAt;
    }

	public void setCreateAt( Date createAt ) {
    	this.createAt = createAt;
    }

	public int getIsTop() {
    	return isTop;
    }

	public void setIsTop( int isTop ) {
    	this.isTop = isTop;
    }

	public int getStatus() {
    	return status;
    }

	public void setStatus( int status ) {
    	this.status = status;
    }
	
}
